* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: white;
}

// 美化
input[type='range']::-webkit-slider-runnable-track {
  background-color: #eee;
}

input[type='range']::-moz-range-track {
  background-color: #eee;
}

input[type="range"]::-ms-track {
  color: transparent;
  background-color: #eee;
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: 5px solid #fff;
  height: 14px;
  width: 14px;
  border-radius: 8px;
  background: #1ba1e2;
  cursor: pointer;
}

input[type='range']::-moz-range-thumb {
  border: 3px solid #fff;
  height: 7px;
  width: 7px;
  border-radius: 8px;
  background: #1ba1e2;
  cursor: pointer;
}

input[type='range']::-ms-thumb {
  border: 3px solid #fff;
  height: 7px;
  width: 7px;
  border-radius: 8px;
  background: #1ba1e2;
  cursor: pointer;
}

@font-face {
  font-family: "Eng";
  src: url("../fonts/MOD20.TTF");
}

@font-face {
  font-family: "Cha";
  src: url("../fonts/STZHONGS.TTF");
}

.ENG() {
  color: white;
  font-family: "Eng", serif;
}

.CH() {
  color: white;
  font-family: "Cha", serif;
}

/**
  输入的通用格式
 */
.input() {
  font-size: 20px;
  background-color: transparent;
  border: solid 1px gray;
  border-radius: 5px;
  outline: none;
  .ENG();
}

/**
  一行数字输入
 */
.LineNumberInput() {

  display: block;
  margin: 20px auto;
  padding: 5px;
  width: 90%;
  .input();

}

/**
  一行数字输出
 */
.LineNumberOutput() {
  display: block;
  margin: 20px auto;
  padding: 5px;
  width: 90%;
  .input();
}

.startBtn() {
  display: block;
  margin: 5px auto;
  background-color: #1e1e1e;
  .CH();
  padding: 5px 2em;
  border-radius: 1000px;
  font-size: 20px;
}

.MyCharInput() {
  width: 1em;
  background-color: transparent;
  outline: none;
  border: solid 1px gray;
  border-radius: 5px;
  margin: 5px;
  .ENG();
  text-indent: 5px;
}

h1, h2, h3, h4, h5, h6 {
  text-align: center;
  line-height: 2em;
  .CH();
}

body {
  background-color: #3c3f41;
  color: white;

  .view {
    width: 100%;
    height: 100vh;
    overflow: scroll;
    position: relative;

    .back {
      position: sticky;
      display: block;
      left: 75%;
      top: 20px;
      width: 80px;
      text-align: center;
      .CH();
      font-size: 20px;
      background-color: #1e1e1e;
      padding: 5px 20px;
      border-radius: 200px;

    }
  }
}
